<?php include("include/textcenter.php"); ?>
<?php include("include/db.php"); ?>
<html>
<head>
<meta name="description" content="Admin<?php echo $tagdescription?>">
<meta name="keywords" content="<?php echo $tagkeywords?> Main">
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title><?php echo $tagtitle?></title>

<script type="text/javascript" src="simpletreemenu.js">
/***********************************************
* Simple Tree Menu- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<link rel="stylesheet" type="text/css" href="simpletree.css" />
<LINK rel="StyleSheet" href="include/css_classes.css" type="text/css">

</head>



<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" link="#0000FF" vlink="#800080" alink="#FF0000" bgcolor="#FFFFFF">
<!-- -------------------Header---------------------------- -->
<?php include("include/header.php"); ?>
<!-- -------------------End Header---------------------------- -->


<div align="center">
<table border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="12%" valign="top">
		<img border="0" src="public/images/homepage/spider16.gif" width="200" height="1"></td>
		<td width="1%" valign="top">
		<img border="0" src="public/images/homepage/spider16.gif" width="16" height="1"></td>
		<td width="86%" valign="top">
		<img border="0" src="public/images/homepage/spider16.gif" width="16" height="1"></td>
	</tr>	
	<tr>
		<!-- ///////////////////Begin Leftmenu/////////////////// -->
		<td width="12%" valign="top" bgcolor="#FFFFFF">
		<?php include("include/leftmenu.php"); ?>
		</td>
		<!-- ///////////////////End Leftmenu/////////////////// -->
		
		<td width="1%" valign="top" background="public/images/homepage/16.gif">&nbsp;</td>
		<td width="86%" valign="top">
	<br>
<!-- -------------------Begin Body---------------------------- -->
<p class="title16B">&nbsp;Giftcard &nbsp;<a href="oem_add.php"></a></p>
	<table width="70%" style="font-size:10pt;">
	<tr bgcolor="#996699" style=" font-weight:bold;">
            <td style="padding:4px;">GiftCardID	</td>						
            <td style="padding:4px;">GiftCardNo</td>
            <td style="padding:4px;">Amount</td>
            <td style="padding:4px;">ActiveYN</td>
            <td style="padding:4px;">BuyerID</td>
		  <td style="padding:4px;" align="center" width="70px" colspan="2"></td>
	</tr>
<?php 
$bgcolor ="#FDE8F2";
$sql = "Select COUNT(GiftCardID) from vnf_giftcard";
$rs_result = mysql_query($sql);
$row = mysql_fetch_row($rs_result); 
$total_records = $row[0]; 
$total_pages = ceil($total_records / 30); 
if (isset($_GET["page"])) { $page  = $_GET["page"]; } else { $page=1; }; 
$start_from = ($page-1) * 20; 
$rs_result = mysql_query("Select * from vnf_giftcard order by  GiftCardID  LIMIT $start_from, 30");
while ($row = mysql_fetch_assoc($rs_result))
 {
//echo $Category, $Product;
?> 
    	<tr bgcolor="#FFFFFF"  onMouseOver="this.bgColor = '."'#C0C0C0'".'" onMouseOut ="this.bgColor = '."'#FFFFFF'".'">	
		 <td style="padding:4px;">
			<?php echo $row['GiftCardID']?>
		</td>
        <td style="padding:4px;">
		<?php echo $row['GiftCardNo']?>
		</td>
        <td style="padding:4px; width:200px;">
		<?php echo $row['Amount']?>
		</td>
        <td style="padding:4px; width:200px;">
		<?php echo $row['ActiveYN']?>
		</td>
        <td style="padding:4px; width:200px;">
		<?php echo $row['BuyerID']?>
		</td>
        <td align="center">
			<a style="color:#0033FF" href="Giftcard_update.php?id=<?php echo $row['GiftCardID']?>">
				Update
			</a>
		</td>
		<td align="center">
			<a onclick="return confirm('Do you want to delete this giftcard ?')"  style="color:#0033FF" href="Giftcard_delete.php?id=<?php echo $row['OemID']?>">
				Delete
			</a>
		</td>
	</tr>
        	<?php 
	if ($bgcolor =="fde8f2")
 $bgcolor ="FFFFFF";
else  $bgcolor ="fde8f2";
}; 
?>
	
<?php

for ($i=1; $i<=$total_pages; $i++) { 
            echo "&nbsp;<a href='customer_list.php?page=".$i."'>&nbsp;".$i."</a>"; 
}; 

?>	
</table>
<br />




<!-- -------------------End Body---------------------------- -->

&nbsp;</td>
	</tr>

</table>
</div>
<!-- ----------------------------------------------- -->
<!-- \\\\\\\\\\\\\\\\\\\\\Begin Footer\\\\\\\\\\\\\\\\\\\\\ -->
<?php include("include/footer.php"); ?>
<!-- \\\\\\\\\\\\\\\\\\\\\End Footer\\\\\\\\\\\\\\\\\\\\\ -->
</body>

</html>














	